<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>无标题文档</title>
    </head>

    <body>
        {foreach from=$left_arr item=left}
        <h3 class="f14"><span class="switchs cu on" title="{$left.name}"></span>{$left.name}</h3>
        <ul>
            {if count($left.sub)>0}
            {foreach from=$left.sub item=ls}
            <li id="_MP{$ls.id}" class="sub_menu">
                <a href="javascript:_MP('{$ls.id}','{$ls.url}');" hidefocus="true" style="outline:none;">{$ls.name}</a></li>
            {/foreach}
            {/if}
        </ul>
        {/foreach}


        <script type="text/javascript">
            $(".switchs").each(function(i){
                var ul = $(this).parent().next();
                $(this).click(
                function(){
                    if(ul.is(':visible')){
                        ul.hide();
                        $(this).removeClass('on');
                    }else{
                        ul.show();
                        $(this).addClass('on');
                    }
                })
            });
        </script>
    </body>
</html>
